<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%@ taglib prefix="c" 
	uri="http://java.sun.com/jsp/jstl/core" %> 	
<%@ page import="data.MemberData" 
	import="java.util.*" import="model.Member" %>
<%  
	MemberData data=new MemberData();
	ArrayList<Member> list =data.getList();
	request.setAttribute("list", list); 
%>
<table border="1">  
	<tr>
		<td> 이름 </td> <td> 나이 </td>
	</tr>
	<c:forEach items="${list}" var="member">   
		<tr>
			<td>${member.name} </td>
			<td>${member.age} </td>  
		</tr>
	</c:forEach>
</table>
	   
	
	
</body>
</html>